package dancetwotiktokmodelmysql

import (
	"gorm.io/gorm"
	"time"
)

type DanceProblem struct {
	Id      int64  `gorm:"primaryKey;autoIncrement;comment:id" json:"id"`
	Content string `json:"content" gorm:"column:content;type:varchar(100);not null;default:'';comment:题的内容"`
	AnswerA string `json:"answerA" gorm:"column:answer_a;type:varchar(256);not null;default:'';comment:正确答案"`
	AnswerB string `json:"answerB" gorm:"column:answer_b;type:varchar(256);not null;default:'';comment:错误答案"`
	Tag     string `json:"tag" gorm:"column:tag;type:varchar(256);not null;default:'';comment:标签"`
	//Right     int            `json:"right" gorm:"column:right;type:tinyint;default:0;not null;comment:是否缓存 0A对 1B对"` // 是否缓存 0否 1是
	CreateId  int64          `json:"create_id" gorm:"column:create_id;type:bigint;default:0;not null;comment:创建人id"` // 创建人id
	UpdateId  int64          `json:"update_id" gorm:"column:update_id;type:bigint;default:0;not null;comment:更新人id"` // 更新人id
	CreatedAt time.Time      `json:"created_at" gorm:"column:created_at;type:datetime"`
	UpdatedAt time.Time      `json:"updated_at" gorm:"column:updated_at;type:datetime"`
	DeletedAt gorm.DeletedAt `gorm:"index;type:datetime" json:"-"`
}
